package com.bcent.mall.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;

public class PmsProductWarehouseRecord implements Serializable {
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "关联的产品表id")
    private Long productid;

    @ApiModelProperty(value = "产品的入库单信息，可能多个商品一个code,8位日期，如20210102")
    private String productwarehousecode;

    @ApiModelProperty(value = "进出库类型：1：商品添加 2：库存退货3：订单销售 4 订单退货")
    private Integer type;

    @ApiModelProperty(value = "入库code:(时间戳)")
    private Long inputtime;

    @ApiModelProperty(value = "本次批价，添加商品，必选；")
    private BigDecimal inputprice;

    @ApiModelProperty(value = "如果类型2、3、4，操作的本表记录主键id")
    private Long operrecordid;

    @ApiModelProperty(value = "状态 1 有效 0 删除")
    private Integer status;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductid() {
        return productid;
    }

    public void setProductid(Long productid) {
        this.productid = productid;
    }

    public String getProductwarehousecode() {
        return productwarehousecode;
    }

    public void setProductwarehousecode(String productwarehousecode) {
        this.productwarehousecode = productwarehousecode;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getInputtime() {
        return inputtime;
    }

    public void setInputtime(Long inputtime) {
        this.inputtime = inputtime;
    }

    public BigDecimal getInputprice() {
        return inputprice;
    }

    public void setInputprice(BigDecimal inputprice) {
        this.inputprice = inputprice;
    }

    public Long getOperrecordid() {
        return operrecordid;
    }

    public void setOperrecordid(Long operrecordid) {
        this.operrecordid = operrecordid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", productid=").append(productid);
        sb.append(", productwarehousecode=").append(productwarehousecode);
        sb.append(", type=").append(type);
        sb.append(", inputtime=").append(inputtime);
        sb.append(", inputprice=").append(inputprice);
        sb.append(", operrecordid=").append(operrecordid);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}